package com.linchaoen.elema.service;

import com.linchaoen.elema.model.entity.Address;

import java.util.List;

public interface AddressService {

    Address getDefaultAddr(Integer userId);

    List<Address> getAllAddr(Integer uid);

    int addAddr(Address address);

    int setDefaultAddr(Integer uid, Integer id);

    int setNoDefault(Integer uid, Integer id);

    int deleteAddr(Integer uid, Integer id);

    int updateAddr(Address addr);
}
